package com.jrx.anytxn.transaction.job.fileRepay.step;

import com.jrx.anytxn.param.entity.TlFilePaymentLog;
import com.jrx.anytxn.transaction.bean.FilePaymentSaveBean;
import com.jrx.anytxn.transaction.entity.TlInterestAccrualLog;
import com.jrx.anytxn.transaction.entity.TlThirdPartyPayment;
import com.jrx.anytxn.transaction.service.IFilePayService;
import com.jrx.anytxn.transaction.service.IInterestFileService;
import org.springframework.batch.item.ItemProcessor;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;


@Service
public class FilePayProcessor implements ItemProcessor<TlThirdPartyPayment, FilePaymentSaveBean> {

    @Autowired
    private IFilePayService filePayService;

    /**
     * 处理文件还款
     * @param item
     * @return
     * @throws Exception
     */
    @Override
    public FilePaymentSaveBean process(TlThirdPartyPayment item) throws Exception {
        return filePayService.dealFilePay(item);
    }
}
